package com.xdxc.feign;


import com.xdxc.model.entity.SysUser;
import com.xdxc.model.entity.User;
import com.xdxc.response.Result;
import com.xdxc.vo.LoginAdminVo;
import com.xdxc.vo.RegisterAdmin;
import com.xdxc.vo.UserLoginVo;
import com.xdxc.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "xdxc-user")
public interface LoginRegisterFeign {
    @PostMapping("/user/admin/login")
    Result<SysUser> Login(@RequestBody LoginAdminVo loginAdminVo);

    @PostMapping( value = "/user/admin/register")
    Boolean registerAdmin(@RequestBody RegisterAdmin registerAdmin);

    @PostMapping("/user/user/login")
    Result<User> userLogin(@RequestBody UserLoginVo userLoginVo);

    @PostMapping( value = "/user/user/register")
    Boolean userRegister(@RequestBody UserRegisterVo userRegisterVo);

}
